using UnityEngine;
using System.Collections;

public class Mouse : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public GameObject isRightLetter
    {
        get
        {
            GameObject letterobj = this.transform.GetChild(0).gameObject;
            if (AlphabetGenerator.remain.Count > 0)
            {
                GameObject hitobj = AlphabetGenerator.remain[0];
                if (letterobj.name == hitobj.name)
                {
                    return hitobj;
                }
            }
            return null;
        }
    }

    public void Hit()
    {
        AlphabetGenerator.remain.RemoveAt(0);
    }
}
